package org.seckill.dto;

//所以ajax请求返回类型,封装json结果
public class SeckillResult<T> {

	private boolean success;

	private T date;

	private String error;

	public SeckillResult(boolean success, T date) {
		super();
		this.success = success;
		this.date = date;
	}

	public SeckillResult(boolean success, String error) {
		super();
		this.success = success;
		this.error = error;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public T getDate() {
		return date;
	}

	public void setDate(T date) {
		this.date = date;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}
}
